@(message: String,store:List[Tuple2[String,String]])(implicit session:Session)
@import views.html.users._

@main(message , scripts=scripts) {

<div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
    <ul class="layui-tab-title">
        <li class="layui-this">table1</li>
        <li>接收的发货单</li>
        <li>汇总的发货单</li>
        <li>发货单汇总</li>
        <li>汇总单同步</li>
        <li>汇总单合计</li>
        <li>补发货单</li>
        <li>补退货单</li>
    </ul>
    <div class="layui-tab-content">
        <div class="layui-tab-item layui-show">
            <table class="layui-table">
                <colgroup>
                    <col width="150">
                    <col width="200">
                    <col>
                </colgroup>
                <thead>
                <tr>
                    <th>昵称</th>
                    <th>加入时间</th>
                    <th>签名</th>
                </tr>
                </thead>
                <tbody>
                <tr>
                    <td>贤心</td>
                    <td>2016-11-29</td>
                    <td>人生就像是一场修行</td>
                </tr>
                <tr>
                    <td>许闲心</td>
                    <td>2016-11-28</td>
                    <td>于千万人之中遇见你所遇见的人，于千万年之中，时间的无涯的荒野里…</td>
                </tr>
                </tbody>
            </table>
        </div>
        <!-- 接收发货单页 -->
        <div class="layui-tab-item">
            <div class="layui-row layui-col-space2">
            <form class="layui-form" action="">
                <div class="layui-col-md3">
                    <label class="layui-form-label">日期</label>
                    <div class="layui-input-block" >
                        <input type="text" name="sdate" class="layui-input" lay-verify="required" placeholder="yyyy-MM-dd HH:MM:SS ~ yyyy-MM-dd HH:MM:SS" id="datetimerev">

                    </div>
                </div>

                <div class="layui-col-md2">
                    <label class="layui-form-label">汇总状态</label>
                    <div class="layui-input-block">
                        <select name="status" lay-verify="required">
                            <option value="-1">全部</option>
                            <option value="0">未汇总</option>
                            <option value="1">准备汇总</option>
                            <option value="2">完成汇总</option>

                        </select>
                    </div>
                </div>

                <div class="layui-col-md2">
                    <label class="layui-form-label">发货单号</label>
                    <div class="layui-input-block">
                        <input type="text" name="p1" placeholder="请输入" autocomplete="off"
                               class="layui-input">
                    </div>
                </div>

                <div class="layui-col-md2">
                    <label class="layui-form-label">汇总单号</label>
                    <div class="layui-input-block">
                        <input type="text" name="p2" placeholder="请输入" autocomplete="off" class="layui-input">
                    </div>
                </div>

                <div class="layui-col-md3">
                    <div class="layui-input-block">
                        <button class="layui-btn" lay-submit lay-filter="formRev">立即提交</button>
                        <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                    </div>
                </div>
            </form>
            </div>
                <table id="demoRev" lay-filter="test"></table>
        </div>
        <!-- 汇总发货单页 -->
        <div class="layui-tab-item">
            <div class="layui-row layui-col-space2">
            <form class="layui-form" action="">
                <div class="layui-col-md3">
                    <label class="layui-form-label">日期</label>
                    <div class="layui-input-block">
                        <input type="text" name="sdate" class="layui-input" lay-verify="required" placeholder="yyyy-MM-dd HH:MM:SS ~ yyyy-MM-dd HH:MM:SS" id="datetimesum">

                    </div>
                </div>

                <div class="layui-col-md2">
                    <label class="layui-form-label">同步状态</label>
                    <div class="layui-input-block">
                        <select name="status" lay-verify="required">
                            <option value="99">全部</option>
                            <option value="0">未同步</option>
                            <option value="1">同步失败</option>
                            <option value="2">同步成功</option>

                        </select>
                    </div>
                </div>

                <div class="layui-col-md3">
                    <label class="layui-form-label">汇总单号</label>
                    <div class="layui-input-block">
                        <input type="text" name="p1" placeholder="请输入" autocomplete="off" class="layui-input">
                    </div>
                </div>

                <div class="layui-col-md3">
                    <div class="layui-input-block">
                        <button class="layui-btn" lay-submit lay-filter="formSum">立即提交</button>
                        <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                    </div>
                </div>
            </form>
            </div>
            <table id="demoSum" lay-filter="test"></table>

        </div>
        <!-- 汇总页 -->
        <div class="layui-tab-item">
            <div class="layui-row layui-col-space2">
            <form class="layui-form" action="">
                <div class="layui-col-md3">
                    <label class="layui-form-label">日期</label>
                    <div class="layui-input-block">
                        <input type="text" name="sdate" class="layui-input" lay-verify="required"
                               placeholder="yyyy-MM-dd ~ yyyy-MM-dd" id="daterev">

                    </div>
                </div>

                <div class="layui-col-md3">
                    <label class="layui-form-label">仓库代码</label>
                    <div class="layui-input-block">
                        <select name="p1" lay-verify="required">
                            <option value="-1">全部</option>
                            @for(s<-store){
                            <option value="@s._1">@s._2</option>
                            }
                        </select>
                    </div>
                </div>

                <div class="layui-col-md3">
                    <div class="layui-input-block">
                        <button class="layui-btn" lay-submit lay-filter="formRevSum">立即提交</button>
                        <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                    </div>
                </div>
            </form>
            </div>
                <table id="table-revsum" lay-filter="test"></table>
        </div>
        <!-- 发送汇总单页 -->
        <div class="layui-tab-item">
        <div class="layui-row layui-col-space2">

            <form class="layui-form" action="">
                <div class="layui-col-md3">
                    <label class="layui-form-label">日期</label>
                    <div class="layui-input-block">
                        <input type="text" name="sdate" class="layui-input" lay-verify="required"
                               placeholder="yyyy-MM-dd ~ yyyy-MM-dd" id="datesum">

                    </div>
                </div>

                <div class="layui-col-md3">
                    <label class="layui-form-label">同步状态</label>
                    <div class="layui-input-block">
                        <select name="status" lay-verify="required">
                            <option value="99">全部</option>
                            <option value="0">未同步</option>
                            <option value="1">同步失败</option>
                            <option value="2" selected>未同步成功</option>

                        </select>
                    </div>
                </div>

                <div class="layui-col-md3">
                    <label class="layui-form-label">汇总单号</label>
                    <div class="layui-input-block">
                        <input type="text" name="p1" placeholder="请输入" autocomplete="off" class="layui-input">
                    </div>
                </div>

                <div class="layui-col-md3">
                    <div class="layui-input-block">
                        <button class="layui-btn" lay-submit lay-filter="formSumSend">立即提交</button>
                        <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                    </div>
                </div>
            </form>
        </div>
            <table id="table-sendsum" lay-filter="test"></table>
        </div>
        <!-- 统计汇总单页 -->
        <div class="layui-tab-item">
            <div class="layui-row layui-col-space2">
            <form class="layui-form" action="">
                <div class="layui-col-md4">
                    <label class="layui-form-label">日期</label>
                    <div class="layui-input-block">
                        <input type="text" name="sdate" class="layui-input" lay-verify="required"
                               placeholder="yyyy-MM-dd ~ yyyy-MM-dd" id="datecount">

                    </div>
                </div>
                <div class="layui-col-md4">
                    <div class="layui-input-block">
                        <button class="layui-btn" lay-submit lay-filter="formOssCount">立即提交</button>
                        <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                    </div>
                </div>
            </form>
            </div>
                <table id="table-OssCount" lay-filter="test"></table>
        </div>
        <!-- 补发货单单页 -->
        <div class="layui-tab-item">
            <div class="layui-row layui-col-space2">
                <form class="layui-form" action="">
                    <div class="layui-col-md3">
                        <label class="layui-form-label">日期</label>
                        <div class="layui-input-block" >
                            <input type="text" name="sdate" class="layui-input datetime" lay-verify="required" placeholder="yyyy-MM-dd HH:MM:SS ~ yyyy-MM-dd HH:MM:SS" id="datetime2">
                        </div>
                    </div>

                    <div class="layui-col-md2">
                        <label class="layui-form-label">状态</label>
                        <div class="layui-input-block">
                            <select name="status" lay-verify="required">
                                <option value="-1">全部</option>
                                <option value="0">未汇总</option>
                                <option value="1">准备汇总</option>
                                <option value="2">完成汇总</option>

                            </select>
                        </div>
                    </div>

                    <div class="layui-col-md2">
                        <label class="layui-form-label">发货单号</label>
                        <div class="layui-input-block">
                            <input type="text" name="p1" placeholder="请输入" autocomplete="off"
                                   class="layui-input">
                        </div>
                    </div>
                    <input hidden type="text" name="p2" value="delivery">

                    <div class="layui-col-md3">
                        <div class="layui-input-block">
                            <button class="layui-btn" lay-submit lay-filter="formGetSDO">立即提交</button>
                            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                        </div>
                    </div>
                </form>
            </div>
            <table id="table-demoGetSDO" lay-filter="test"></table>
        </div>
        <!-- 补退货单单页 -->
        <div class="layui-tab-item">
            <div class="layui-row layui-col-space2">
                <form class="layui-form" action="">
                    <div class="layui-col-md3">
                        <label class="layui-form-label">日期</label>
                        <div class="layui-input-block" >
                            <input type="text" name="sdate" class="layui-input datetime" lay-verify="required" placeholder="yyyy-MM-dd HH:MM:SS ~ yyyy-MM-dd HH:MM:SS" id="datetime3">
                        </div>
                    </div>

                    <div class="layui-col-md2">
                        <label class="layui-form-label">状态</label>
                        <div class="layui-input-block">
                            <select name="status" lay-verify="required">
                                <option value="-1">全部</option>
                                <option value="0">未汇总</option>
                                <option value="1">准备汇总</option>
                                <option value="2">完成汇总</option>

                            </select>
                        </div>
                    </div>

                    <div class="layui-col-md2">
                        <label class="layui-form-label">发货单号</label>
                        <div class="layui-input-block">
                            <input type="text" name="p1" placeholder="请输入" autocomplete="off"
                                   class="layui-input">
                        </div>
                    </div>

                    <input hidden type="text" name="p2" value="tradereturn">

                    <div class="layui-col-md3">
                        <div class="layui-input-block">
                            <button class="layui-btn" lay-submit lay-filter="formGetRGO">立即提交</button>
                            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                        </div>
                    </div>
                </form>
            </div>
            <table id="table-demoRGO" lay-filter="test"></table>
        </div>
    </div>
</div>


}

@scripts = {<script src='@routes.Assets.versioned("js/layui_outstock.js")' type="text/javascript"></script>}